# /usr/bin/env bash

# This script file is used to create directory and mount with --bind, wrote into /etc/fstab

declare -r BASE_DIR="/appdata/provisioner"

for i in {00..15}; do
  sudo mkdir -p ${BASE_DIR}/vol-${i}
  echo "${BASE_DIR}/vol-${i}  ${BASE_DIR}/vol-${i}  xfs  defaults,bind  0 0" | sudo tee -a /etc/fstab
done

sudo mount -a
